//
//  ViewController.m
//  第一个iOS程序--切换文字颜色
//
//  Created by 小新 on 16/3/15.
//  Copyright © 2016年 北京尚学堂. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@property (weak, nonatomic) IBOutlet UILabel *label;

@end

@implementation ViewController

- (IBAction)purpleClick {
    
    self.label.textColor = [UIColor purpleColor];
    self.label.text = @"我是紫色";
}
- (IBAction)yellowClick {
    self.label.textColor = [UIColor yellowColor];
    
    self.label.text = @"我是黄色";
}

- (IBAction)grayClick {
    self.label.textColor = [UIColor grayColor];
    self.label.text = @"我是灰色";
}

@end
